fix recursion crash when calling setStyleSheet with qproperty-styleSheet
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 2 Apr 2022 18:23:38 +0000 (19:23 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 2 Apr 2022 18:23:38 +0000 (19:23 +0100)
commit3273109c2d27f6e6ef4ed51e2e04a607baebdf28
tree2b19f004d5002b5041a21ed499f057620f1deaa1
parent4e298471f9bddacd4395bb23852591ad74259a66
fix recursion crash when calling setStyleSheet with qproperty-styleSheet

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9cdcc7cb314586a
Last-Update: 2021-11-13

When calling setStyleSheet with property qproperty-styleSheet,
QStyleSheetStyle::polish will call QStyleSheetStyle::setProperties,
and then QStyleSheetStyle::setProperties goes on to call setProperty.
Because there is property qproperty-styleSheet, it will update
stylesheet by calling QStyleSheetStyle::polish.
This causes the recursive call to crash.

Gbp-Pq: Name fix_recursion_crash.diff
src/widgets/styles/qstylesheetstyle.cpp
tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp